package com.xiao.springmvc.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.xiao.springmvc.entity.ProductImage;

public interface ProductImageDao extends JpaRepository<ProductImage, Long>{

	public ProductImage findByProductIdAndOrderId(long productId,int orderId);
	
	public List<ProductImage> findByProductIdAndOrderIdBetweenOrderByOrderIdAsc(long productId,int begin,int end);
	
}
